import request from '@/utils/request'

// 查询保修结果列表
export function listDetailsResult(query) {
  return request({
    url: '/repair/detailsResult/list',
    method: 'get',
    params: query
  })
}

// 查询保修结果详细
export function getDetailsResult(id) {
  return request({
    url: '/repair/detailsResult/' + id,
    method: 'get'
  })
}

// 新增保修结果
export function addDetailsResult(data) {
  return request({
    url: '/repair/detailsResult',
    method: 'post',
    data: data
  })
}

// 修改保修结果
export function updateDetailsResult(data) {
  return request({
    url: '/repair/detailsResult',
    method: 'put',
    data: data
  })
}

// 删除保修结果
export function delDetailsResult(id) {
  return request({
    url: '/repair/detailsResult/' + id,
    method: 'delete'
  })
}
